import { uniFetch  } from '../utils/Ajax'
import {uniConfig} from '../config/index'
const appId = uniConfig.appId
const basePath = uniConfig.prodPath
export function getOrder(data : any) {
    return uniFetch.uniPost({
            query: {
            appId: appId,
            ...data
            }
        },
        basePath + "/member/mall/order/detail"
    )
}
//选择支付方式
export function setPaymethod(data : any) {
    return uniFetch.uniPost({
        query: {
            ...data
        }
        },
        basePath + "/member/order/selectPaymethod"
    )
}

//商城创建订单（归属于王者荣耀专题）
export function skuCreateOrder(data : any) {
    return uniFetch.uniPost({
        query: {
            ...data
        }
        },
        basePath + "/zt/member/mall/order/create"
    )
}

//获取套票订单列表（归属于王者荣耀专题）
export function getZtOrderList(data : any) {
    return uniFetch.uniPost({
        query: {
            ...data
        }
        },
        basePath + "/member/zt/order/list"
    )
}

